package com.demo.dao;

import com.demo.bean.Admin;
import com.demo.bean.School;
import com.demo.bean.Warehouse;

public interface AdminDao {

    //根据用户名和密码查询的方法
    //user 需要查询的用户参数
    //查询到的user对象
    Admin selectUserIdAndPassword(Admin admin);

    //新增学校账户
    String insertSchool(School school);

    //修改学校账户
    String updateSchool(School school);

    //查询学校账户
    String selectSchool(School school);

    //删除学校账户
    boolean deleteSchool(School school);

    //增加库存
    String insertWarehouse(Warehouse ws);

    //删除库存
    boolean deleteWarehouse(Warehouse ws);

    //修改库存
    String updateWarehouse(Warehouse ws);

    //查看库存
    String selectWarehouse(Warehouse ws);

}
